﻿@{
    DLULearningNetworkModel.Account accountOwner = ViewBag.AccountOwner;
    DLULearningNetworkModel.Account currentAccount = DLULearningNetwork.ActionFilterAttributes.RequireUserLogin.LoginUser;
    ViewBag.Title = "Tường nhà của " + accountOwner.LastName_s + " " + accountOwner.FirstName_s;
    Layout = "~/Views/Shared/UserPageLayout.cshtml";
}
@section cssjs{
    <script type="text/javascript" src="../../Scripts/Custom/jquery.autogrow.js"></script>
    <script type="text/javascript" src="../../Scripts/Custom/jsEncodeDecode.js"></script>
    <script type="text/javascript" src="../../Scripts/Custom/jsUserHome.js"></script>
    <script type="text/javascript" src="../../Scripts/Custom/jquery.tinyscrollbar.min.js"></script>
    <script type="text/javascript" src="../../Scripts/Custom/jsNotificationBox.js"></script>
    <link href="@Url.Content("~/Content/ScrollBar.css")"rel="stylesheet" type="text/css" />
}
@section userPageMenu{
    @Html.Partial("UserPageMenu", accountOwner)
}
@section leftContent{
    <input type="hidden" name="AccountOwnerID" value="@accountOwner.AccountID_u"/>
    <div class="status-pf">
        <h3>
            @accountOwner.LastName_s @accountOwner.FirstName_s ( @accountOwner.Nickname_s )
        </h3>
    </div>
    <div style="height: 30px;">
    </div>
    <div id="statusCenter">
        <div class="status-input" id="status_id">
            @if (ViewBag.ShowTextBoxMainStatus)
            {
                <textarea name="txtMainStatus" id="txtMainStatus" class="mainStatus"></textarea>
                <div class="clr">
                    <a id="btnSubmitMainStatus" class="dlubtn" style="margin: 10px 10px 10px auto;">Cập
                        nhật</a>
                </div>
            }
            else
            {
                <div class="mainStatusTemp">
                    Bạn không có quyền viết lên tường của @accountOwner.LastName_s @accountOwner.FirstName_s</div>
            }
        </div>
        <div class="clr" style="height: 30px;">
        </div>
        <div id="feedStory" numberoffeed="0">
        </div>
        <div id="loadingBar" style="display: none;">
            <a id="moreFeed" href="#" onclick="return false;" style="color: Green; float: left;">
                Xem thêm</a>
            <img src="../../Content/Images/loadingimage.gif" alt="" style="padding-left: 40px;" />
        </div>
    </div>
}
@section rightBox{
    @if (currentAccount.AccountID_u == accountOwner.AccountID_u)
    {
         @Html.Action("NotificationBox", "RightBox")

    }
    else
    {
        @Html.Action("GetFriendListBox", "RightBox", new { ownerAccountID = accountOwner.AccountID_u, nickname = accountOwner.Nickname_s })
    }
    <script type="text/javascript">
        $(".vscrollbar").tinyscrollbar();
        if ($("p[name=noRequest]").length != 0) {
            $("p[name=noRequest]").parents(".viewport").css('height', "30px");
        }
        NotificationBox();
        $(".otherNotifications").css('display', 'none');
        $(".courseNotifications").css('display', 'none');
    </script>
}
